//
//  AboutVC.m
//  easyTaxi
//
//  Created by ellenpage on 13-1-23.
//  Copyright (c) 2013年 ellenpage. All rights reserved.
//

#import "AboutVC.h"

@interface AboutVC ()

- (IBAction)goBack;
@property (strong, nonatomic) IBOutlet UIView *aboutView_Detail;
@property (weak, nonatomic) IBOutlet UIWebView *myWebView;

- (IBAction)goToHomePage;

- (IBAction)goToWeiBo;

- (IBAction)hideDetailView;

@end

@implementation AboutVC

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self)
    {
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    [self.view addSubview:_aboutView_Detail];
    _aboutView_Detail.hidden = YES;
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

- (IBAction)goBack
{
    [self.navigationController popViewControllerAnimated:YES];
}
- (void)viewDidUnload
{
    [self setAboutView_Detail:nil];
    [self setMyWebView:nil];
    [super viewDidUnload];
}
- (IBAction)goToHomePage
{
    _aboutView_Detail.hidden = NO;
    [_myWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://etaxi.ehave.cn"]]];
}

- (IBAction)goToWeiBo
{
    _aboutView_Detail.hidden = NO;
    [_myWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://weibo.com/iotetaxi"]]];
}

- (IBAction)hideDetailView
{
    _aboutView_Detail.hidden = YES;
}
@end
